//
//  UIViewController+PLStatusBar.m
//
//  Created by KimmanYip on 2017/9/12.
//
//

#import "UIViewController+PLStatusBar.h"

@implementation UIViewController(PLStatusBar)

- (void)pl_setStatusBarColor:(UIColor *)color {
    
    UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"];
    if ([statusBar respondsToSelector:@selector(setBackgroundColor:)]) {
        statusBar.backgroundColor = color;
    }
    
}

@end
